project( kserver )
cmake_minimum_required(VERSION 3.0)


include_directories("./common") 
include_directories("./common/json/")



# 查找当前目录下的所有源文件
# 并将名称保存到 DIR_SRCS 变量
#aux_source_directory(. SRC_LIST)



#aux_source_directory("./common/json/"  jsonLib_SRCS)
# 生成链接库
#add_library (jsonLib  ${jsonLib_SRCS})

file(GLOB_RECURSE  srccode *.cpp *.h  )

add_executable(kserver  ${srccode} )
target_link_libraries(kserver  pthread)
